//
//  JGSubmitSuccessAlertView.m
//  JGRider
//
//  Created by 单启志 on 2018/2/5.
//  Copyright © 2018年 ffq. All rights reserved.
//

#import "JGSubmitSuccessAlertView.h"

@interface JGSubmitSuccessAlertView()
@property (weak, nonatomic) IBOutlet UIView *contView;
@property (weak, nonatomic) IBOutlet UIButton *okBtn;
@end

@implementation JGSubmitSuccessAlertView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self=[super initWithFrame:frame]) {
        self=[[[NSBundle mainBundle]loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil]lastObject];
        self.frame=frame;
    }
    return self;
}

-(void)awakeFromNib{
    [super awakeFromNib];
}

- (IBAction)onOkBtnClick:(id)sender {
    if ([self.delegate respondsToSelector:@selector(submitSuccessAlertViewEvent)]) {
        [self.delegate submitSuccessAlertViewEvent];
    }
}


-(void)layoutSubviews{
    [super layoutSubviews];
    self.contView.layer.cornerRadius=AdaptedWidth(2);
    self.contView.layer.masksToBounds=YES;

    self.okBtn.layer.cornerRadius=AdaptedWidth(2);
    self.okBtn.layer.masksToBounds=YES;
}

@end
